/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gameheart.client.logic;

import java.awt.Rectangle;

/**
 *
 * @author win7
 */
public class SynMouseRect {

    private Rectangle _rect = null;

    public synchronized Rectangle getRect() {
        if (_rect != null) {
            return new Rectangle(_rect);
        }
        return null;
    }

    public synchronized void setRect(Rectangle rect) {
        if (rect == null) {
            _rect = null;
        } else {
            _rect = new Rectangle(rect);
        }
    }
}
